package com.cjw.campus.system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cjw.campus.system.entity.SubjectTable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cjw.campus.system.vo.SubjectTableVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 学科表 Mapper 接口
 * </p>
 *
 * @author cjw
 * @since 2022-12-04
 */
public interface SubjectTableMapper extends BaseMapper<SubjectTable> {

    IPage<SubjectTableVO> listPageBySubjectNameAndSchoolName(IPage<SubjectTableVO> page, @Param("subjectName") String subjectName, @Param("schoolName") String schoolName);

    SubjectTableVO listBySubjectId(@Param("subjectId") Long subjectId);

}
